<template>
	<view class="questions">
		<view class="questions_title">{{ item.title }}</view>
		<view class="questions_time">{{ item.createTime }}</view>
		<text class="questions_con">{{ item.content }}</text>
	</view>
</template>

<script>
export default {
	data() {
		return {
			one: [],
			two: [],
			item: {}
		};
	},

	onLoad(option) {
		const value = uni.getStorageSync('questionDetails');
		if (value) {
			console.log(value, 'llllllllllllllllllllllllllllllllkkkkkkkkkkkk');
			this.item = JSON.parse(value);
		}
		this.item = JSON.parse(option.item);
		// console.log(option, '--------------');
	}
};
</script>

<style lang="scss">
.questions {
	padding: 47rpx;

	.questions_title {
		font-size: 40rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		color: #2a3447;
	}

	.questions_time {
		margin-top: 25rpx;
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #7b7e8f;
	}

	.questions_con {
		// width: 700rpx; //进行宽度设置。
		// display: -webkit-box;
		// -webkit-box-orient: vertical;
		// -webkit-line-clamp: 3;
		// overflow: hidden;
		word-wrap: break-word;
	}
}
</style>
